import config
from api.ihrm_emp_api import IhrmEmpApi
from common.token_util import ToekenUtil


class DepIdUtil:
    @classmethod
    def dep_id_util(cls):
        token = ToekenUtil.token_util()
        body = {
            "username": "小猪佩奇",
            "mobile": 17101910013,
            "workNumber": "22"
        }
        resp = IhrmEmpApi.add_emp_api(token,body)
        emp_id = resp.json().get("data").get("id")
        return emp_id

if __name__ == '__main__':
    print(DepIdUtil.dep_id_util())

